/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * File:   drawer2d.h
 * Author: PC
 *
 * Created on 2016Äê1ÔÂ21ÈÕ, ÉÏÎç11:41
 */

#ifndef EAGLE_H
#define EAGLE_H
#include <windows.h>
#include <math.h>
#include <SDL/SDL.h>


namespace Eagle
{
    typedef unsigned char color_t;
    struct color{
        color_t r,g,b,a;
    };
    typedef SDL_Surface* graph;
    void envInit();
    graph graphInit(int h, int w,int flags = SDL_SWSURFACE);
    namespace draw
    {
//        color defaultColor;
//        void  setcolor(color_t r, color_t g, color_t b, color_t a = 255);
//        void  setcolor(unsigned long long col);

        void  flush(graph g);
    }

}

#endif /* EAGLE_H */

